package com.aliyun.test.controller;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Data //省略setter getter
@Component //当前对象交给Spring容器管理
@ConfigurationProperties(prefix = "class") //申明配置文件中被封装的对象
public class Course {
private String ruangong01;
private String ruangong02;
private String ruangong03;
private String ruangong04;
private String[] course;
}